function get_parameter(param){
		var query = window.location.search;
		var iStart = query.indexOf(param);
		var iLen = param.length;
		if(iStart == -1){
			return "";		
		}
		iStart	+= iLen + 1;
		var iEndAnd = query.indexOf("&", iStart);
		var iEndSplash = query.indexOf("/",iStart);
		if(iEndAnd == -1 && iEndSplash == -1){
			return query.substring(iStart);
		} else if (iEndAnd > 0) {
			return query.substring(iStart,iEndAnd);
		} else if(iEndSplash > 0){
			return query.substring(iStart,iEndSplash);
		}

	}

